package cn.ilikes.tools.hbase.jpa.proxys.cglibs;

import cn.ilikes.tools.hbase.jpa.clients.AbClient;
import cn.ilikes.tools.hbase.jpa.metadatas.IEntityMetaData;
import cn.ilikes.tools.hbase.jpa.metadatas.elements.EntityFields;
import cn.ilikes.tools.hbase.jpa.proxys.LazyInitializerFactory;
import cn.ilikes.tools.hbase.jpa.proxys.LazyInitializers;

public class CglibLazyInitializerFactory implements LazyInitializerFactory {
	
	public CglibLazyInitializerFactory()
	{
		
	}

	@Override
	public Object getProxy(EntityFields entityFields, IEntityMetaData targetEntityMetaData, Object keyId, AbClient client) {
		
		LazyInitializers lazyInitializers =new CglibLazyInitializer(entityFields,targetEntityMetaData,keyId,client);
		
		return lazyInitializers.getProxy();
	}

	
}
